package com.lineage.server.model.doll;

import com.lineage.server.model.Instance.L1PcInstance;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Doll_MpTR extends L1DollExecutor {
  private static final Log _log = LogFactory.getLog(Doll_MpTR.class);
  
  private int _int1;
  
  private int _int2;
  
  private String _note;
  
  public static L1DollExecutor get() {
    return new Doll_MpTR();
  }
  
  public void set_power(int int1, int int2, int int3) {
    try {
      this._int1 = int1;
      this._int2 = int2;
    } catch (Exception e) {
      _log.error(e.getLocalizedMessage(), e);
    } 
  }
  
  public void set_note(String note) {
    this._note = note;
  }
  
  public String get_note() {
    return this._note;
  }
  
  public void setDoll(L1PcInstance pc) {
    try {
      pc.set_doll_mpr(this._int1);
      pc.set_doll_mpr_time_src(this._int2);
    } catch (Exception e) {
      _log.error(e.getLocalizedMessage(), e);
    } 
  }
  
  public void removeDoll(L1PcInstance pc) {
    try {
      pc.set_doll_mpr(0);
      pc.set_doll_mpr_time_src(0);
    } catch (Exception e) {
      _log.error(e.getLocalizedMessage(), e);
    } 
  }
  
  public boolean is_reset() {
    return false;
  }
}
